package com.gukun.springboot.tdengine.demo.mybatis.domain;

import cn.hutool.core.util.RandomUtil;
import com.gukun.springboot.tdengine.demo.mybatis.domain.enums.TagType;

public class TagData {
    public TagData(Long ts, String val, Byte quality) {
        this.ts = ts;
        this.val = val;
        this.quality = quality;
    }

    /**
     * 时间戳
     */
    private Long ts;
    /**
     * 值
     */
    private String val;
    private Byte quality;
    private Long tagId;

    public TagData() {

    }

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public Byte getQuality() {
        return quality;
    }

    public void setQuality(Byte quality) {
        this.quality = quality;
    }

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    @Override
    public String toString() {
        return "TagData{" +
                "ts=" + ts +
                ", tagid=" + tagId +
                ", value=" + val +
                ", quality=" + quality +
                '}';
    }
}
